/* Determina as alturas */
function setHeights() {
	var windowHeight = getWindowHeight();
	if (windowHeight > 0) {
		var topoHeight = 160;
		var footerHeight  = 16;
		var x = (windowHeight - (footerHeight + topoHeight)) + "px";
		if(document.getElementById("estruturaIframe")) 
			document.getElementById("estruturaIframe").style.height = (windowHeight - (footerHeight + topoHeight)) + "px";
		if(document.getElementById("iframe_cont"))
			document.getElementById("iframe_cont").style.height = (windowHeight - (footerHeight + topoHeight)) + "px";
	}
}

function addEvent2(obj, evType, fn){
    if (obj.addEventListener)
        obj.addEventListener(evType, fn, true)
    if (obj.attachEvent)
        obj.attachEvent("on"+evType, fn)
}

addEvent2(window, "load", setHeights);
addEvent2(window, "resize", setHeights);